package com.stec.masterdata.entity;

import com.stec.masterdata.entity.common.MasterEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="教师信息表",description = "教师信息表")
@Entity
@Table(name="teacher")
public class Teacher extends MasterEntity<String> {
    private static final long serialVersionUID=539L;

    public static final String ENTITY_TABLE = "teacher";
    public static final String ENTITY_CODE = "Teacher";

    public static final String COLUMN_ID="id";
    public static final String COLUMN_NAME="name";
    public static final String COLUMN_RECORD_CREATE_DATE="record_create_date";
    public static final String COLUMN_RECORD_UPDATE_DATE="record_update_date";
    public static final String COLUMN_CODE="code";
    public static final String COLUMN_STATE="state";

    public static final String ATTRIBUTE_ID="id";
    public static final String ATTRIBUTE_NAME="name";
    public static final String ATTRIBUTE_RECORD_CREATE_DATE="recordCreateDate";
    public static final String ATTRIBUTE_RECORD_UPDATE_DATE="recordUpdateDate";
    public static final String ATTRIBUTE_CODE="code";
    public static final String ATTRIBUTE_STATE="state";

    /**
     * id 无意义
     */
    @ApiModelProperty(value = "无意义id",example="1")
    @Column(name="id")
    private Long id;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "姓名",example="Jack")
    @Column(name="name")
    private String name;

    /**
     * 记录生成时间
     */
    @ApiModelProperty(value = "记录生成时间",example="2020-7-15")
    @Column(name="record_create_date")
    private Date recordCreateDate;

    /**
     * 记录更新时间
     */
    @ApiModelProperty(value = "记录更新时间",example="2020-7-15")
    @Column(name="record_update_date")
    private Date recordUpdateDate;

    /**
     * 码
     */
    @ApiModelProperty(value = "码",example="entity code")
    @Column(name="code")
    private String code;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态",example="0")
    @Column(name="state")
    private Integer state;


}
